package com.kefu.chat.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import java.io.Serializable;
import java.util.List;

@Data
@TableName(value="chat_menu_config_plan")
@ApiModel(description = "快捷菜单方案")
public class ChatMenuConfigPlan implements Serializable {
    /**
     * 主键
     */
    @TableId(value="id")
    @NotEmpty
    @ApiModelProperty(value = "主键")
    private String id;

    /**
     * 租户
     */
    @TableField(value="tenant_id")
    @ApiModelProperty(value = "租户")
    private String tenantId;

    /**
     * 方案名称
     */
    @TableField(value="plan_name")
    @ApiModelProperty(value = "方案名称")
    private String planName;

    /**
     * 方案备注
     */
    @TableField(value="plan_remark")
    @ApiModelProperty(value = "方案备注")
    private String planRemark;

    /**
     * 是否启用
     */
    @TableField(value="sort_no")
    @ApiModelProperty(name = "sortNo", value = "排序")
    private Integer sortNo;

    /**
     * 快捷菜单列表
     */
    @TableField(value="menus")
    @ApiModelProperty(name = "menus", value = "快捷菜单列表")
    private String menus;

    /**
     * 快捷菜单列表
     */
    @TableField(exist = false)
    @ApiModelProperty(name = "menuList", value = "快捷菜单列表")
    private List<ChatMenuConfig> chatMenuConfigList;

    /**
     * 是否启用
     */
    @TableField(value="enable_status")
    @ApiModelProperty(name = "enableStatus", value = "是否启用 0=未启用，1=启用")
    private Integer enableStatus;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    @ApiModelProperty(name = "createTime", value = "创建时间")
    private Long createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    @ApiModelProperty(name = "updateTime", value = "更新时间")
    private Long updateTime;

    /**
     * 创建人
     */
    @TableField(value = "create_user")
    @ApiModelProperty(name = "createUser", value = "创建人")
    private String createUser;

    /**
     * 更新人
     */
    @TableField(value = "update_user")
    @ApiModelProperty(name = "updateUser", value = "更新人")
    private String updateUser;

    /**
     * 创建人
     */
    @TableField(value = "create_name")
    @ApiModelProperty(name = "createName", value = "创建人")
    private String createName;

    /**
     * 更新人
     */
    @TableField(value = "update_name")
    @ApiModelProperty(name = "updateName", value = "更新人")
    private String updateName;
    private static final long serialVersionUID = 1L;
}